import request from './request'

/**
 * 获取文档列表
 * @param router
 * @returns
 */
export function fetchApiDoc (router:string):Promise<any> {
  return request.get(`api/v1/apidoc?router=${router}`)
}

/**
 * 添加文档
 * @param params
 * @returns
 */
export function addApiDoc (params:object):Promise<any> {
  return request.post('/api/v1/apidoc', params)
}

